package br.com.trophy.assets;
import java.io.InputStream;
import java.net.URL;
import android.graphics.drawable.Drawable;


public class Loader
{
	public static Drawable LoadImageFromWeb( String url )
	{
		try
		{
			InputStream is = (InputStream) new URL( url ).getContent();
			return Drawable.createFromStream( is, "src name" );
		}
		catch ( Exception e )
		{
			System.out.println( "Exc=" + e );
			return null;
		}
	}
}
